package com.sl.mes.db.vo;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Arrays;

public class BdDefdoclist {
    private String pkDefdoclist;

    private String associatename;

    private String bpfcomponentid;

    private String code;

    private String codectlgrade;

    private String coderule;

    private String comp;

    private String componentid;

    private String creationtime;

    private String creator;

    private Integer dataoriginflag;

    private String docclass;

    private Integer doclevel;

    private Integer doctype;

    private Integer dr;

    private String funcode;

    private String isgrade;

    private String isrelease;

    private Integer mngctlmode;

    private String modifiedtime;

    private String modifier;

    private String name;

    private String name2;

    private String name3;

    private String name4;

    private String name5;

    private String name6;

    private String pkGroup;

    private String pkOrg;

    private LocalDateTime ts;

    public String getPkDefdoclist() {
        return pkDefdoclist;
    }

    public void setPkDefdoclist(String pkDefdoclist) {
        this.pkDefdoclist = pkDefdoclist;
    }

    public String getAssociatename() {
        return associatename;
    }

    public void setAssociatename(String associatename) {
        this.associatename = associatename;
    }

    public String getBpfcomponentid() {
        return bpfcomponentid;
    }

    public void setBpfcomponentid(String bpfcomponentid) {
        this.bpfcomponentid = bpfcomponentid;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCodectlgrade() {
        return codectlgrade;
    }

    public void setCodectlgrade(String codectlgrade) {
        this.codectlgrade = codectlgrade;
    }

    public String getCoderule() {
        return coderule;
    }

    public void setCoderule(String coderule) {
        this.coderule = coderule;
    }

    public String getComp() {
        return comp;
    }

    public void setComp(String comp) {
        this.comp = comp;
    }

    public String getComponentid() {
        return componentid;
    }

    public void setComponentid(String componentid) {
        this.componentid = componentid;
    }

    public String getCreationtime() {
        return creationtime;
    }

    public void setCreationtime(String creationtime) {
        this.creationtime = creationtime;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Integer getDataoriginflag() {
        return dataoriginflag;
    }

    public void setDataoriginflag(Integer dataoriginflag) {
        this.dataoriginflag = dataoriginflag;
    }

    public String getDocclass() {
        return docclass;
    }

    public void setDocclass(String docclass) {
        this.docclass = docclass;
    }

    public Integer getDoclevel() {
        return doclevel;
    }

    public void setDoclevel(Integer doclevel) {
        this.doclevel = doclevel;
    }

    public Integer getDoctype() {
        return doctype;
    }

    public void setDoctype(Integer doctype) {
        this.doctype = doctype;
    }

    public Integer getDr() {
        return dr;
    }

    public void setDr(Integer dr) {
        this.dr = dr;
    }

    public String getFuncode() {
        return funcode;
    }

    public void setFuncode(String funcode) {
        this.funcode = funcode;
    }

    public String getIsgrade() {
        return isgrade;
    }

    public void setIsgrade(String isgrade) {
        this.isgrade = isgrade;
    }

    public String getIsrelease() {
        return isrelease;
    }

    public void setIsrelease(String isrelease) {
        this.isrelease = isrelease;
    }

    public Integer getMngctlmode() {
        return mngctlmode;
    }

    public void setMngctlmode(Integer mngctlmode) {
        this.mngctlmode = mngctlmode;
    }

    public String getModifiedtime() {
        return modifiedtime;
    }

    public void setModifiedtime(String modifiedtime) {
        this.modifiedtime = modifiedtime;
    }

    public String getModifier() {
        return modifier;
    }

    public void setModifier(String modifier) {
        this.modifier = modifier;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName2() {
        return name2;
    }

    public void setName2(String name2) {
        this.name2 = name2;
    }

    public String getName3() {
        return name3;
    }

    public void setName3(String name3) {
        this.name3 = name3;
    }

    public String getName4() {
        return name4;
    }

    public void setName4(String name4) {
        this.name4 = name4;
    }

    public String getName5() {
        return name5;
    }

    public void setName5(String name5) {
        this.name5 = name5;
    }

    public String getName6() {
        return name6;
    }

    public void setName6(String name6) {
        this.name6 = name6;
    }

    public String getPkGroup() {
        return pkGroup;
    }

    public void setPkGroup(String pkGroup) {
        this.pkGroup = pkGroup;
    }

    public String getPkOrg() {
        return pkOrg;
    }

    public void setPkOrg(String pkOrg) {
        this.pkOrg = pkOrg;
    }

    public LocalDateTime getTs() {
        return ts;
    }

    public void setTs(LocalDateTime ts) {
        this.ts = ts;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", pkDefdoclist=").append(pkDefdoclist);
        sb.append(", associatename=").append(associatename);
        sb.append(", bpfcomponentid=").append(bpfcomponentid);
        sb.append(", code=").append(code);
        sb.append(", codectlgrade=").append(codectlgrade);
        sb.append(", coderule=").append(coderule);
        sb.append(", comp=").append(comp);
        sb.append(", componentid=").append(componentid);
        sb.append(", creationtime=").append(creationtime);
        sb.append(", creator=").append(creator);
        sb.append(", dataoriginflag=").append(dataoriginflag);
        sb.append(", docclass=").append(docclass);
        sb.append(", doclevel=").append(doclevel);
        sb.append(", doctype=").append(doctype);
        sb.append(", dr=").append(dr);
        sb.append(", funcode=").append(funcode);
        sb.append(", isgrade=").append(isgrade);
        sb.append(", isrelease=").append(isrelease);
        sb.append(", mngctlmode=").append(mngctlmode);
        sb.append(", modifiedtime=").append(modifiedtime);
        sb.append(", modifier=").append(modifier);
        sb.append(", name=").append(name);
        sb.append(", name2=").append(name2);
        sb.append(", name3=").append(name3);
        sb.append(", name4=").append(name4);
        sb.append(", name5=").append(name5);
        sb.append(", name6=").append(name6);
        sb.append(", pkGroup=").append(pkGroup);
        sb.append(", pkOrg=").append(pkOrg);
        sb.append(", ts=").append(ts);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BdDefdoclist other = (BdDefdoclist) that;
        return (this.getPkDefdoclist() == null ? other.getPkDefdoclist() == null : this.getPkDefdoclist().equals(other.getPkDefdoclist()))
            && (this.getAssociatename() == null ? other.getAssociatename() == null : this.getAssociatename().equals(other.getAssociatename()))
            && (this.getBpfcomponentid() == null ? other.getBpfcomponentid() == null : this.getBpfcomponentid().equals(other.getBpfcomponentid()))
            && (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode()))
            && (this.getCodectlgrade() == null ? other.getCodectlgrade() == null : this.getCodectlgrade().equals(other.getCodectlgrade()))
            && (this.getCoderule() == null ? other.getCoderule() == null : this.getCoderule().equals(other.getCoderule()))
            && (this.getComp() == null ? other.getComp() == null : this.getComp().equals(other.getComp()))
            && (this.getComponentid() == null ? other.getComponentid() == null : this.getComponentid().equals(other.getComponentid()))
            && (this.getCreationtime() == null ? other.getCreationtime() == null : this.getCreationtime().equals(other.getCreationtime()))
            && (this.getCreator() == null ? other.getCreator() == null : this.getCreator().equals(other.getCreator()))
            && (this.getDataoriginflag() == null ? other.getDataoriginflag() == null : this.getDataoriginflag().equals(other.getDataoriginflag()))
            && (this.getDocclass() == null ? other.getDocclass() == null : this.getDocclass().equals(other.getDocclass()))
            && (this.getDoclevel() == null ? other.getDoclevel() == null : this.getDoclevel().equals(other.getDoclevel()))
            && (this.getDoctype() == null ? other.getDoctype() == null : this.getDoctype().equals(other.getDoctype()))
            && (this.getDr() == null ? other.getDr() == null : this.getDr().equals(other.getDr()))
            && (this.getFuncode() == null ? other.getFuncode() == null : this.getFuncode().equals(other.getFuncode()))
            && (this.getIsgrade() == null ? other.getIsgrade() == null : this.getIsgrade().equals(other.getIsgrade()))
            && (this.getIsrelease() == null ? other.getIsrelease() == null : this.getIsrelease().equals(other.getIsrelease()))
            && (this.getMngctlmode() == null ? other.getMngctlmode() == null : this.getMngctlmode().equals(other.getMngctlmode()))
            && (this.getModifiedtime() == null ? other.getModifiedtime() == null : this.getModifiedtime().equals(other.getModifiedtime()))
            && (this.getModifier() == null ? other.getModifier() == null : this.getModifier().equals(other.getModifier()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getName2() == null ? other.getName2() == null : this.getName2().equals(other.getName2()))
            && (this.getName3() == null ? other.getName3() == null : this.getName3().equals(other.getName3()))
            && (this.getName4() == null ? other.getName4() == null : this.getName4().equals(other.getName4()))
            && (this.getName5() == null ? other.getName5() == null : this.getName5().equals(other.getName5()))
            && (this.getName6() == null ? other.getName6() == null : this.getName6().equals(other.getName6()))
            && (this.getPkGroup() == null ? other.getPkGroup() == null : this.getPkGroup().equals(other.getPkGroup()))
            && (this.getPkOrg() == null ? other.getPkOrg() == null : this.getPkOrg().equals(other.getPkOrg()))
            && (this.getTs() == null ? other.getTs() == null : this.getTs().equals(other.getTs()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPkDefdoclist() == null) ? 0 : getPkDefdoclist().hashCode());
        result = prime * result + ((getAssociatename() == null) ? 0 : getAssociatename().hashCode());
        result = prime * result + ((getBpfcomponentid() == null) ? 0 : getBpfcomponentid().hashCode());
        result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode());
        result = prime * result + ((getCodectlgrade() == null) ? 0 : getCodectlgrade().hashCode());
        result = prime * result + ((getCoderule() == null) ? 0 : getCoderule().hashCode());
        result = prime * result + ((getComp() == null) ? 0 : getComp().hashCode());
        result = prime * result + ((getComponentid() == null) ? 0 : getComponentid().hashCode());
        result = prime * result + ((getCreationtime() == null) ? 0 : getCreationtime().hashCode());
        result = prime * result + ((getCreator() == null) ? 0 : getCreator().hashCode());
        result = prime * result + ((getDataoriginflag() == null) ? 0 : getDataoriginflag().hashCode());
        result = prime * result + ((getDocclass() == null) ? 0 : getDocclass().hashCode());
        result = prime * result + ((getDoclevel() == null) ? 0 : getDoclevel().hashCode());
        result = prime * result + ((getDoctype() == null) ? 0 : getDoctype().hashCode());
        result = prime * result + ((getDr() == null) ? 0 : getDr().hashCode());
        result = prime * result + ((getFuncode() == null) ? 0 : getFuncode().hashCode());
        result = prime * result + ((getIsgrade() == null) ? 0 : getIsgrade().hashCode());
        result = prime * result + ((getIsrelease() == null) ? 0 : getIsrelease().hashCode());
        result = prime * result + ((getMngctlmode() == null) ? 0 : getMngctlmode().hashCode());
        result = prime * result + ((getModifiedtime() == null) ? 0 : getModifiedtime().hashCode());
        result = prime * result + ((getModifier() == null) ? 0 : getModifier().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getName2() == null) ? 0 : getName2().hashCode());
        result = prime * result + ((getName3() == null) ? 0 : getName3().hashCode());
        result = prime * result + ((getName4() == null) ? 0 : getName4().hashCode());
        result = prime * result + ((getName5() == null) ? 0 : getName5().hashCode());
        result = prime * result + ((getName6() == null) ? 0 : getName6().hashCode());
        result = prime * result + ((getPkGroup() == null) ? 0 : getPkGroup().hashCode());
        result = prime * result + ((getPkOrg() == null) ? 0 : getPkOrg().hashCode());
        result = prime * result + ((getTs() == null) ? 0 : getTs().hashCode());
        return result;
    }

    /**
     * This enum was generated by MyBatis Generator.
     * This enum corresponds to the database table bd_defdoclist
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    public enum Column {
        pkDefdoclist("pk_defdoclist", "pkDefdoclist", "CHAR", false),
        associatename("associatename", "associatename", "VARCHAR", false),
        bpfcomponentid("bpfcomponentid", "bpfcomponentid", "VARCHAR", false),
        code("code", "code", "VARCHAR", false),
        codectlgrade("codectlgrade", "codectlgrade", "VARCHAR", false),
        coderule("coderule", "coderule", "VARCHAR", false),
        comp("comp", "comp", "VARCHAR", false),
        componentid("componentid", "componentid", "VARCHAR", false),
        creationtime("creationtime", "creationtime", "CHAR", false),
        creator("creator", "creator", "VARCHAR", false),
        dataoriginflag("dataoriginflag", "dataoriginflag", "INTEGER", false),
        docclass("docclass", "docclass", "VARCHAR", false),
        doclevel("doclevel", "doclevel", "INTEGER", false),
        doctype("doctype", "doctype", "INTEGER", false),
        dr("dr", "dr", "INTEGER", false),
        funcode("funcode", "funcode", "VARCHAR", false),
        isgrade("isgrade", "isgrade", "CHAR", false),
        isrelease("isrelease", "isrelease", "CHAR", false),
        mngctlmode("mngctlmode", "mngctlmode", "INTEGER", false),
        modifiedtime("modifiedtime", "modifiedtime", "CHAR", false),
        modifier("modifier", "modifier", "VARCHAR", false),
        name("name", "name", "VARCHAR", true),
        name2("name2", "name2", "VARCHAR", false),
        name3("name3", "name3", "VARCHAR", false),
        name4("name4", "name4", "VARCHAR", false),
        name5("name5", "name5", "VARCHAR", false),
        name6("name6", "name6", "VARCHAR", false),
        pkGroup("pk_group", "pkGroup", "VARCHAR", false),
        pkOrg("pk_org", "pkOrg", "VARCHAR", false),
        ts("ts", "ts", "TIMESTAMP", false);

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table bd_defdoclist
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        private static final String BEGINNING_DELIMITER = "`";

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table bd_defdoclist
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        private static final String ENDING_DELIMITER = "`";

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table bd_defdoclist
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        private final String column;

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table bd_defdoclist
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        private final boolean isColumnNameDelimited;

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table bd_defdoclist
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        private final String javaProperty;

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table bd_defdoclist
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        private final String jdbcType;

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table bd_defdoclist
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        public String value() {
            return this.column;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table bd_defdoclist
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        public String getValue() {
            return this.column;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table bd_defdoclist
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        public String getJavaProperty() {
            return this.javaProperty;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table bd_defdoclist
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        public String getJdbcType() {
            return this.jdbcType;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table bd_defdoclist
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
            this.column = column;
            this.javaProperty = javaProperty;
            this.jdbcType = jdbcType;
            this.isColumnNameDelimited = isColumnNameDelimited;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table bd_defdoclist
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        public String desc() {
            return this.getEscapedColumnName() + " DESC";
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table bd_defdoclist
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        public String asc() {
            return this.getEscapedColumnName() + " ASC";
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table bd_defdoclist
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        public static Column[] excludes(Column ... excludes) {
            ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
            if (excludes != null && excludes.length > 0) {
                columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));
            }
            return columns.toArray(new Column[]{});
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table bd_defdoclist
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        public String getEscapedColumnName() {
            if (this.isColumnNameDelimited) {
                return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();
            } else {
                return this.column;
            }
        }
    }
}